package com.cyzy.homework.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * 作业文件DTO
 */
@Data
public class HomeworkFileDTO {
    
    private Long id;
    
    private Long homeworkSubmitId;
    
    private String originalName;
    
    private String storedName;
    
    private String filePath;
    
    private Long fileSize;
    
    private String fileType;
    
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime uploadTime;
    
    private String uploaderId;
    
    // 文件下载URL
    private String downloadUrl;
    
    // 文件大小格式化显示
    private String fileSizeFormatted;
}

